Description |
Performs an HTTP post of the text to the specified URL and passes the reply from the server to the specified function. Typically the data associated with a post operation is form-encoded text, but it could be any type of data that the server expects to receive. |
Arguments |
callbackFunc, URL, dataToPost, {contentType} |
|
 |
The first argument is the name of the JavaScript function to call when the HTTP request is complete. |
 |
The second argument is an absolute URL on a web server; if the "http://" part of the URL is omitted, it is assumed. |
 |
The third argument is the data to be posted. If the third argument is "application/x-www-form-urlencoded" or omitted, data must be form encoded according to section 8.2.1 of the RFC 1866 specification (available at http://www.faqs.org/rfcs/rfc1866.html) |
 |
The fourth argument is the content type of the data to be posted. If omitted, this argument defaults to "application/x-www-form-urlencoded" . |
|
Returns |
An object that represents the reply from the server. The data property of this object is a string containing the data resulting from the post operation. |
 |
|